﻿using System;

namespace ExtAspNet.Examples
{
    public partial class test : System.Web.UI.Page
    {

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //Button1.Text = "修改后的值";
                //Button1.Icon = Icon.Add;

                //Button2.Hidden = true;
            }
        }

        //protected void Button1_Click(object sender, EventArgs e)
        //{
        //    //Button1.Text += " - " + DateTime.Now.Second.ToString();
        //    //Button2.Hidden = !Button2.Hidden;
        //}

        //public override Control FindControl(string id)
        //{
        //    return base.FindControl(id.Replace("_", "$"));
        //}

        protected void treeList_NodeCommand(object sender, ExtAspNet.TreeCommandEventArgs e)
        {
            Alert.ShowInTop(e.Node.Text, "Click", ExtAspNet.MessageBoxIcon.Information);
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            Alert.ShowInTop("HAHA");
        }

    }
}
